package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 城市管理对象 sys_city_data
 *
 * @author ruoyi
 * @date 2021-09-27
 */
public class SysCityData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Integer id;

    /** 栏目名 */
    @Excel(name = "栏目名")
    private String areaname;

    /** 父栏目 */
    @Excel(name = "父栏目")
    private Integer parentid;

    /**  */
    @Excel(name = "")
    private String shortname;

    /**  */
    @Excel(name = "")
    private String lng;

    /**  */
    @Excel(name = "")
    private String lat;

    /** 1.省 2.市 3.区 4.镇 */
    @Excel(name = "1.省 2.市 3.区 4.镇")
    private Integer level;

    /**  */
    @Excel(name = "")
    private String position;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setAreaname(String areaname)
    {
        this.areaname = areaname;
    }

    public String getAreaname()
    {
        return areaname;
    }
    public void setParentid(Integer parentid)
    {
        this.parentid = parentid;
    }

    public Integer getParentid()
    {
        return parentid;
    }
    public void setShortname(String shortname)
    {
        this.shortname = shortname;
    }

    public String getShortname()
    {
        return shortname;
    }
    public void setLng(String lng)
    {
        this.lng = lng;
    }

    public String getLng()
    {
        return lng;
    }
    public void setLat(String lat)
    {
        this.lat = lat;
    }

    public String getLat()
    {
        return lat;
    }
    public void setLevel(Integer level)
    {
        this.level = level;
    }

    public Integer getLevel()
    {
        return level;
    }
    public void setPosition(String position)
    {
        this.position = position;
    }

    public String getPosition()
    {
        return position;
    }
    public void setSort(Integer sort)
    {
        this.sort = sort;
    }

    public Integer getSort()
    {
        return sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("areaname", getAreaname())
            .append("parentid", getParentid())
            .append("shortname", getShortname())
            .append("lng", getLng())
            .append("lat", getLat())
            .append("level", getLevel())
            .append("position", getPosition())
            .append("sort", getSort())
            .toString();
    }
}
